package com.yfp.device.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class MachineNetWarnExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MachineNetWarnExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andWarnIdIsNull() {
            addCriterion("warn_id is null");
            return (Criteria) this;
        }

        public Criteria andWarnIdIsNotNull() {
            addCriterion("warn_id is not null");
            return (Criteria) this;
        }

        public Criteria andWarnIdEqualTo(String value) {
            addCriterion("warn_id =", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdNotEqualTo(String value) {
            addCriterion("warn_id <>", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdGreaterThan(String value) {
            addCriterion("warn_id >", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdGreaterThanOrEqualTo(String value) {
            addCriterion("warn_id >=", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdLessThan(String value) {
            addCriterion("warn_id <", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdLessThanOrEqualTo(String value) {
            addCriterion("warn_id <=", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdLike(String value) {
            addCriterion("warn_id like", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdNotLike(String value) {
            addCriterion("warn_id not like", value, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdIn(List<String> values) {
            addCriterion("warn_id in", values, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdNotIn(List<String> values) {
            addCriterion("warn_id not in", values, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdBetween(String value1, String value2) {
            addCriterion("warn_id between", value1, value2, "warnId");
            return (Criteria) this;
        }

        public Criteria andWarnIdNotBetween(String value1, String value2) {
            addCriterion("warn_id not between", value1, value2, "warnId");
            return (Criteria) this;
        }

        public Criteria andMachineIdIsNull() {
            addCriterion("machine_id is null");
            return (Criteria) this;
        }

        public Criteria andMachineIdIsNotNull() {
            addCriterion("machine_id is not null");
            return (Criteria) this;
        }

        public Criteria andMachineIdEqualTo(String value) {
            addCriterion("machine_id =", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdNotEqualTo(String value) {
            addCriterion("machine_id <>", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdGreaterThan(String value) {
            addCriterion("machine_id >", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdGreaterThanOrEqualTo(String value) {
            addCriterion("machine_id >=", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdLessThan(String value) {
            addCriterion("machine_id <", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdLessThanOrEqualTo(String value) {
            addCriterion("machine_id <=", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdLike(String value) {
            addCriterion("machine_id like", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdNotLike(String value) {
            addCriterion("machine_id not like", value, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdIn(List<String> values) {
            addCriterion("machine_id in", values, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdNotIn(List<String> values) {
            addCriterion("machine_id not in", values, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdBetween(String value1, String value2) {
            addCriterion("machine_id between", value1, value2, "machineId");
            return (Criteria) this;
        }

        public Criteria andMachineIdNotBetween(String value1, String value2) {
            addCriterion("machine_id not between", value1, value2, "machineId");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNull() {
            addCriterion("offline_time is null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIsNotNull() {
            addCriterion("offline_time is not null");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeEqualTo(String value) {
            addCriterion("offline_time =", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotEqualTo(String value) {
            addCriterion("offline_time <>", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThan(String value) {
            addCriterion("offline_time >", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeGreaterThanOrEqualTo(String value) {
            addCriterion("offline_time >=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThan(String value) {
            addCriterion("offline_time <", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLessThanOrEqualTo(String value) {
            addCriterion("offline_time <=", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeLike(String value) {
            addCriterion("offline_time like", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotLike(String value) {
            addCriterion("offline_time not like", value, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeIn(List<String> values) {
            addCriterion("offline_time in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotIn(List<String> values) {
            addCriterion("offline_time not in", values, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeBetween(String value1, String value2) {
            addCriterion("offline_time between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOfflineTimeNotBetween(String value1, String value2) {
            addCriterion("offline_time not between", value1, value2, "offlineTime");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationIsNull() {
            addCriterion("online_duration is null");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationIsNotNull() {
            addCriterion("online_duration is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationEqualTo(String value) {
            addCriterion("online_duration =", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotEqualTo(String value) {
            addCriterion("online_duration <>", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationGreaterThan(String value) {
            addCriterion("online_duration >", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationGreaterThanOrEqualTo(String value) {
            addCriterion("online_duration >=", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationLessThan(String value) {
            addCriterion("online_duration <", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationLessThanOrEqualTo(String value) {
            addCriterion("online_duration <=", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationLike(String value) {
            addCriterion("online_duration like", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotLike(String value) {
            addCriterion("online_duration not like", value, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationIn(List<String> values) {
            addCriterion("online_duration in", values, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotIn(List<String> values) {
            addCriterion("online_duration not in", values, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationBetween(String value1, String value2) {
            addCriterion("online_duration between", value1, value2, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOnlineDurationNotBetween(String value1, String value2) {
            addCriterion("online_duration not between", value1, value2, "onlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationIsNull() {
            addCriterion("offline_duration is null");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationIsNotNull() {
            addCriterion("offline_duration is not null");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationEqualTo(String value) {
            addCriterion("offline_duration =", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationNotEqualTo(String value) {
            addCriterion("offline_duration <>", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationGreaterThan(String value) {
            addCriterion("offline_duration >", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationGreaterThanOrEqualTo(String value) {
            addCriterion("offline_duration >=", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationLessThan(String value) {
            addCriterion("offline_duration <", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationLessThanOrEqualTo(String value) {
            addCriterion("offline_duration <=", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationLike(String value) {
            addCriterion("offline_duration like", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationNotLike(String value) {
            addCriterion("offline_duration not like", value, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationIn(List<String> values) {
            addCriterion("offline_duration in", values, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationNotIn(List<String> values) {
            addCriterion("offline_duration not in", values, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationBetween(String value1, String value2) {
            addCriterion("offline_duration between", value1, value2, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andOfflineDurationNotBetween(String value1, String value2) {
            addCriterion("offline_duration not between", value1, value2, "offlineDuration");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeIsNull() {
            addCriterion("recover_time is null");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeIsNotNull() {
            addCriterion("recover_time is not null");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeEqualTo(String value) {
            addCriterion("recover_time =", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeNotEqualTo(String value) {
            addCriterion("recover_time <>", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeGreaterThan(String value) {
            addCriterion("recover_time >", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeGreaterThanOrEqualTo(String value) {
            addCriterion("recover_time >=", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeLessThan(String value) {
            addCriterion("recover_time <", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeLessThanOrEqualTo(String value) {
            addCriterion("recover_time <=", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeLike(String value) {
            addCriterion("recover_time like", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeNotLike(String value) {
            addCriterion("recover_time not like", value, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeIn(List<String> values) {
            addCriterion("recover_time in", values, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeNotIn(List<String> values) {
            addCriterion("recover_time not in", values, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeBetween(String value1, String value2) {
            addCriterion("recover_time between", value1, value2, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andRecoverTimeNotBetween(String value1, String value2) {
            addCriterion("recover_time not between", value1, value2, "recoverTime");
            return (Criteria) this;
        }

        public Criteria andClearFlagIsNull() {
            addCriterion("clear_flag is null");
            return (Criteria) this;
        }

        public Criteria andClearFlagIsNotNull() {
            addCriterion("clear_flag is not null");
            return (Criteria) this;
        }

        public Criteria andClearFlagEqualTo(Integer value) {
            addCriterion("clear_flag =", value, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagNotEqualTo(Integer value) {
            addCriterion("clear_flag <>", value, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagGreaterThan(Integer value) {
            addCriterion("clear_flag >", value, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("clear_flag >=", value, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagLessThan(Integer value) {
            addCriterion("clear_flag <", value, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagLessThanOrEqualTo(Integer value) {
            addCriterion("clear_flag <=", value, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagIn(List<Integer> values) {
            addCriterion("clear_flag in", values, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagNotIn(List<Integer> values) {
            addCriterion("clear_flag not in", values, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagBetween(Integer value1, Integer value2) {
            addCriterion("clear_flag between", value1, value2, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andClearFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("clear_flag not between", value1, value2, "clearFlag");
            return (Criteria) this;
        }

        public Criteria andCreatTimeIsNull() {
            addCriterion("creat_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatTimeIsNotNull() {
            addCriterion("creat_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatTimeEqualTo(Date value) {
            addCriterionForJDBCDate("creat_time =", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("creat_time <>", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("creat_time >", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("creat_time >=", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeLessThan(Date value) {
            addCriterionForJDBCDate("creat_time <", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("creat_time <=", value, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeIn(List<Date> values) {
            addCriterionForJDBCDate("creat_time in", values, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("creat_time not in", values, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("creat_time between", value1, value2, "creatTime");
            return (Criteria) this;
        }

        public Criteria andCreatTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("creat_time not between", value1, value2, "creatTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}